<?php 
/**
 * Concept: Single content setup
 * Copyright 2011 www.gradientpixels.ca
 * Theme: Incantation
 */

get_header(); ?>

<?php			
	$bloglayout = of_get_option('blog_layout');
		switch ($bloglayout) {
		case "left": // with left sidebar ?>
			
<div id="content-wrapper" class="clearfix" >
	<div class="w960 padding55">		
		<?php get_template_part( 'inc/sidebar-blog-left'); ?>			
		<div id="content-right" role="main">
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content', 'blog' ); ?>
					<?php get_template_part( 'inc/footer-single' ); ?>
					
				<?php endwhile; // end of the loop. ?>				
		</div><!-- #content-right -->				
	</div><!-- .w960 -->
</div><!-- #content-wrapper -->	
			
			<?php 
			break;
		case "full": // full width ?>

<div id="content-wrapper" class="clearfix" >
		<div class="w960 padding55">
			<div id="content-main" role="main">
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content', 'blog' ); ?>
					<?php get_template_part( 'inc/footer-single' ); ?>
					
				<?php endwhile; // end of the loop. ?>				
			</div><!-- #content-main -->				
		</div><!-- .w960 -->
</div><!-- #content-wrapper -->

			<?php 
			break;
		case "right": // with right sidebar ?>

<div id="content-wrapper" class="clearfix" >
	<div class="w960 padding55">
		<div id="content-left" role="main">
			<?php while ( have_posts() ) : the_post(); ?>
				<?php get_template_part( 'content', 'blog' ); ?>
				<?php get_template_part( 'inc/footer-single' ); ?>
				
				<?php endwhile; // end of the loop. ?>
		</div><!-- #content-left -->			
		<?php get_template_part( 'inc/sidebar-blog-right'); ?>				
	</div><!-- .w960 -->
</div><!-- #content-wrapper -->

			<?php
			break;
		}			
?>	
 
<?php get_footer(); ?>